package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiU_circle;
import cn.com.api.mapper.base.U_circleMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiU_circleMapper extends U_circleMapperBase {

	// 新增对象后返回记录ID
	public int U_circleInsertion(ApiU_circle u_circle);

	//
	public List<ApiU_circle> findU_circlesByMapListPage(@Param("map") Map map, @Param("page") PageInfo page);

	public List<ApiU_circle> findCirclesListPage(@Param("map") Map paramMap, @Param("page") PageInfo pageInfo);

	// 获取收藏的圈子列表
	public List<ApiU_circle> findCircleListByFavoriteTypeListPage(@Param("user_id") String user_id,
			@Param("type") Integer type, @Param("page") PageInfo page);

	// 获取关注的圈子列表
	public List<ApiU_circle> findCircleListByFollowTypeListPage(@Param("user_id") String user_id,
			@Param("type") Integer type, @Param("page") PageInfo page);

	public List<ApiU_circle> getRecommendcircleListPage(@Param("user_id") String user_id,
			@Param("page") PageInfo pageInfo);

	public List<ApiU_circle> getNearbycircleListPage(@Param("map") Map paramMap, @Param("page") PageInfo pageInfo);

	public ApiU_circle findCircleInfoByMap(@Param("map") Map<String, Object> paramMap);

	public List<ApiU_circle> getMyAllcirclesListPage(String user_id, PageInfo pageInfo);

}
